import request from "../utils/request.ts";
import {Pagination, PaginationData, User} from "../types/user.ts";

export const getProfile = async () => request<User>({
    url: '/api/user/profile',
    method: 'get'
})

export const getUsers = async (params: Pagination | User) => request<PaginationData<User[]>>({
    url: '/api/user/users',
    method: 'get',
    params
})